include build-aux/guile.am

moddir=$(prefix)/share/guile/site/$(GUILE_EFFECTIVE_VERSION)
godir=$(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/ccache

SOURCES = \
	charting.scm \
	charting/csv.scm \
	charting/draw.scm \
	charting/prof.scm \
	charting/util.scm

EXTRA_DIST += \
	env.in \
	HACKING \
	build-aux/make-texinfo.scm \
	build-aux/make-html.scm \
	doc/guile-charting.scm \
	examples/analyze-gnome-dvcs.scm \
	examples/elf-map.scm \
	examples/perf-series.scm \
	examples/plot-data.scm \
	examples/scatter-plot.scm

info_TEXINFOS = doc/guile-charting.texi

regenerate-texi:
	./env $(abs_top_srcdir)/build-aux/make-texinfo.scm \
	    $(abs_top_srcdir)/doc/guile-charting.scm > doc/guile-charting.texi

regenerate-html:
	cd doc; ../env $(abs_top_srcdir)/build-aux/make-html.scm \
	    $(abs_top_srcdir)/doc/guile-charting.scm

push-docs: regenerate-html doc/guile-charting.pdf
	rsync -a doc/html/ wingolog.org:/home/wingo/www/software/guile-charting/doc/
	scp doc/guile-charting.pdf wingolog.org:/home/wingo/www/software/guile-charting/
